package com.tudouji.project.bill.mapper;

import java.util.List;
import com.tudouji.project.bill.domain.Transferapply;

/**
 * 库房调拨Mapper接口
 * 
 * @author tudouji
 * @date 2021-03-22
 */
public interface TransferapplyMapper 
{
    /**
     * 查询库房调拨
     * 
     * @param guid 库房调拨ID
     * @return 库房调拨
     */
    public Transferapply selectTransferapplyById(String guid);
    public Transferapply selectTransferapplyByNewId(Long guid);

    /**
     * 查询库房调拨列表
     * 
     * @param transferapply 库房调拨
     * @return 库房调拨集合
     */
    public List<Transferapply> selectTransferapplyList(Transferapply transferapply);
    /**
     * 查询库房调拨列表
     *
     * @param transferapply 库房调拨
     * @return 库房调拨集合
     */
    public List<Transferapply> findPagePC(Transferapply transferapply);

    /**
     * 新增库房调拨
     * 
     * @param transferapply 库房调拨
     * @return 结果
     */
    public int insertTransferapply(Transferapply transferapply);

    /**
     * 修改库房调拨
     * 
     * @param transferapply 库房调拨
     * @return 结果
     */
    public int updateTransferapply(Transferapply transferapply);

    /**
     * 删除库房调拨
     * 
     * @param guid 库房调拨ID
     * @return 结果
     */
    public int deleteTransferapplyById(String guid);
    public int deleteTransferapplyByNewId(Long id);

    /**
     * 批量删除库房调拨
     * 
     * @param guids 需要删除的数据ID
     * @return 结果
     */
    public int deleteTransferapplyByIds(String[] guids);

    public List<Transferapply> selectApplyPendingList(Transferapply transferapply);

    public List<Transferapply> selectApplyListByPerm(Transferapply transferapply);

    public List<Transferapply> selectApplyListByUser(Transferapply transferapply);

    void updateTransferapplyById(Transferapply upBase);

    Transferapply findDetail(Transferapply transferapply);

    Transferapply selectTransferapplyByCode(String code);
}
